﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TotalApplication.AngelSix.directory.data
{
    public partial class DirectoryItem : ObservableObject
    {
        [ObservableProperty]
        private string _path;

        [ObservableProperty]
        private string _name;

        [ObservableProperty]
        private DirectoryItemType _type;
        public DirectoryItem(string path, DirectoryItemType type)
        {
            Path = path;
            Type = type;
            Name = System.IO.Path.GetFileName(path);
        }
    }
}
